Learn R Programming

dprop (version 0.1.0)

Chi-squared distribution: Compute the distributional properties of the Chi-squared distribution

Description

Compute the first four ordinary moments, central moments, mean, and variance, Pearson's coefficient of skewness and kurtosis, coefficient of variation, median and quartile deviation based on the selected parametric values of the (non-central) Chi-squared distribution.

Usage

d_chi(n)

Value

d_chi gives the first four ordinary moments, central moments, mean, and variance, Pearson's coefficient of skewness and kurtosis, coefficient of variation, median and quartile deviation based on the selected parametric values of the (non-central) Chi-squared distribution.

Arguments

n

It is a degree of freedom and the positive parameter of the Chi-squared distribution (\(n > 0\)).

Author

Muhammad Imran.

R implementation and documentation: Muhammad Imran imranshakoor84@yahoo.com.

Details

The following is the probability density function of the (non-central) Chi-squared distribution: $$ f(x)=\frac{1}{2^{\frac{n}{2}}\Gamma(\frac{n}{2})}x^{\frac{n}{2}-1}e^{-\frac{x}{2}}, $$ where \(x > 0\) and \(n > 0\).

References

Ding, C. G. (1992). Algorithm AS275: computing the non-central chi-squared distribution function. Journal of the Royal Statistical Society. Series C (Applied Statistics), 41(2), 478-482.

Johnson, N. L., Kotz, S., & Balakrishnan, N. (1995). Continuous univariate distributions, volume 2 (Vol. 289). John Wiley & Sons.

See Also

d_gamma

Examples

Run this code
d_chi(2)

Run the code above in your browser using DataLab